package com.shycloud.mido.opter.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "stock_in_order_info")
public class StockInOrderInfo {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 入库单ID
     */
    @TableField(value = "in_order_id")
    private Integer inOrderId;

    /**
     * 商品ID
     */
    @TableField(value = "goods_id")
    private Integer goodsId;

    /**
     * 入库商品数量
     */
    @TableField(value = "`count`")
    private Integer count;

    public static final String COL_ID = "id";

    public static final String COL_IN_ORDER_ID = "in_order_id";

    public static final String COL_GOODS_ID = "goods_id";

    public static final String COL_COUNT = "count";

	public StockInOrderInfo(Integer inOrderId, Integer goodsId, Integer count) {
		this.inOrderId = inOrderId;
		this.goodsId = goodsId;
		this.count = count;
	}
}